package org.javaboy.demo.service;

import org.javaboy.demo.mapper.UserMapper;
import org.javaboy.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public String hello() {
        return "hello ssm";
    }

    public List<User> getUsers() {
        return userMapper.getUsers();
    }
}
